<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>外发管理-原料外发序时表</title>
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.7/themes/bootstrap/easyui.css"/>
    <link rel="stylesheet" href="css/icon.css"/>
    <link rel="stylesheet" href="jquery-easyui-1.6.7/themes/icon.css"/>
    <link rel="stylesheet" href="css/order_report.css"/>
    <link rel="stylesheet" href="css/icon_state.css"/>
    <link rel="stylesheet" href="css/form.css"/>
    <link rel="stylesheet" href="jquery-easyui-1.6.7/themes/icon_expand.css"/>
    <script type="text/javascript" src="jQuery/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.6.7/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.6.7/jquery.easyui.expand.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.6.7/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="js/pages/jc/button_generate.js"></script>
    <script type="text/javascript" src="js/util/utils.js"></script>
    <script type="text/javascript" src="js/util/loadEventUtil.js"></script>
    <script type="text/javascript" src="js/util/memoryColumnUtil.js"></script>
    <!-- kendo -->
    <link rel="stylesheet" href="KendoUI/styles/kendo.common.min.css"/>
    <link rel="stylesheet" href="KendoUI/styles/kendo.default.min.css"/>
    <link rel="stylesheet" href="KendoUI/styles/kendo.rtl.min.css"/>
    <script type="text/javascript" src="KendoUI/js/jszip.min.js"></script>
    <script type="text/javascript" src="KendoUI/js/kendo.all.min.js"></script>
    <script type="text/javascript" src="KendoUI/js/messages/kendo.messages.zh-CN.min.js"></script>
    <script type="text/javascript" src="js/util/kendo.config.js"></script>
    <link rel="stylesheet" href="css/global.css">
</head>
<body th:data-menu_id="${MENU_ID}">
<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',height:80">
        <div class="datebox-group">
            <ul style="width: 100%;height: 100%;margin: 0;">
                <li style="height: 32px;">
                    <div class="btn-group pull-left">
                        <input id="start" class="easyui-datebox"
                               data-options="label:'起始日期：',labelWidth:85,value:getRangeDate()">
                    </div>
                    <div class="btn-group pull-left">
                        <input id="end" class="easyui-datebox"
                               data-options="label:'终止日期：',labelWidth:85,value:getCurrentDate(0)">
                    </div>
                    <div class="btn-group pull-left">
                        <input id="state" class="easyui-switchbutton"
                               data-options="value:true,checked:true,width:80,onText:'明细',offText:'汇总',onChange:stateChange">
                    </div>
                    <div class="btn-group pull-left">
                        <input id="contactCompanyId" class="easyui-combobox"
                               data-options="label:'加工户：',labelWidth:70,
                                             url:'processCompany/listQuery',method:'GET',
                                             valueField:'companyName',textField:'companyName',
                                             limitToList:true">
                    </div>
                    <div id="search_area" class="btn-group pull-left">
                        <a id="btn_search" class="easyui-linkbutton" data-options="
                            text: '查询',
                            size: 'small',
                            group: `g1`,
                            iconCls: 'icon-search',
                            onClick: btn_search,
                            plain: true"></a>
                    </div>
                    <div id="search_import" class="btn-group pull-left">
                        <a id="btn_import" class="easyui-linkbutton" data-options="
                            text: '导入外发入库',
                            size: 'small',
                            iconCls: 'icon-add',
                            onClick: getDataA,
                            plain: true"></a>
                    </div>
                </li>
                <li>
                    <div id="north" class=" pull-left"></div>
                </li>
            </ul>
        </div>
    </div>
    <div data-options="region:'center'">
        <div id="tabs" class="easyui-tabs" data-options="fit:true,onSelect:onSelect">
            <div data-options="title:'原料外发'">
                <table id="v_grid"></table>
            </div>
            <div data-options="title:'坯布入库'">
                <table id="v_grid_a"></table>
            </div>
        </div>
    </div>
</div>

<!--导入模态窗弹出代码-->
<div id="A">
    <div class="A_1" style="height: calc(100% - 40px)">
        <table id="detaiA" class="easyui-datagrid" title="" style="width:100%;height:100%;"
               data-options="rownumbers:true,singleSelect:false,method:'get',remoteSort:false,
               toolbar:'#tb',footer:'#ft',striped:true">

            <thead>
            <tr>
                <th data-options="field:'id',width:70,align:'center',sortable:true,hidden:true">编号</th>
                <th data-options="field:'planCode',width:100,align:'center',sortable:true">计划单号</th>
                <th data-options="field:'client',width:80,align:'center',sortable:true">客户</th>
                <th data-options="field:'specification',width:300,align:'center',sortable:true">坯布规格</th>
                <th data-options="field:'ps',width:60,align:'right',sortable:true">匹数</th>
                <th  data-options="field:'qty',width:75,align:'right',sortable:true,
                     formatter: function (value, row, index) {if (row != null) {return parseFloat(value).toFixed(1);}}">
                    公斤</th>
                <th data-options="field:'machineType',width:70,align:'center',sortable:true">机台号</th>
                <th data-options="field:'aorb',width:85,align:'center',sortable:true">AB面</th>
                <th data-options="field:'batchNum',width:100,align:'left',sortable:true">批次号</th>
                <th data-options="field:'createTime',width:170,align:'center',sortable:true,formatter : formatDateTime">入库时间</th>
            </tr>
            </thead>
        </table>
    </div>
    <div class="A_2" style="height:  40px">
        <div id="search_areaA2" class="btn-group pull-right">
            <a id="btn_searchA2" class="easyui-linkbutton" data-options="
                            text: '退出导入',
                            size: 'small',
                            group: `g1`,
                            iconCls: 'icon-no',
                            onClick: closeA,
                            plain: true"></a>
        </div>
        <div id="search_areaA1" class="btn-group pull-right">
            <a id="btn_searchA1" class="easyui-linkbutton" data-options="
                            text: '确定导入',
                            size: 'small',
                            group: `g1`,
                            iconCls: 'icon-save',
                            onClick: createOutward,
                            plain: true"></a>
        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="js/pages/wf/wf_material_send_report.js?version=4"></script>
</html>